summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-27 02:55:28 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-06-27 04:24:18 +0200
commit9074a70b0180057d0cebcd667ad7fc813f1aca8c (patch)
treecdec0c48f4a2f93f23ff1b9d961a5a18a3a3f6ae
parentMerge pull request #10908 from kiri11/clarify-ring-ui (diff)
downloadyuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar.gz
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar.bz2
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar.lz
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar.xz
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.tar.zst
yuzu-9074a70b0180057d0cebcd667ad7fc813f1aca8c.zip
-rw-r--r--src/common/fs/fs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/fs/fs.cpp b/src/common/fs/fs.cpp
index 1baf6d746..36e67c145 100644
--- a/src/common/fs/fs.cpp
+++ b/src/common/fs/fs.cpp
@@ -605,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) {
}
u64 GetSize(const fs::path& path) {
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return Android::GetSize(path);
+ }
+#endif
+
std::error_code ec;
const auto file_size = fs::file_size(path, ec);